<?php
/**
 * Created by PhpStorm.
 * User: dolia
 * Date: 15/12/3
 * Time: 下午4:46
 */

namespace App\Interfaces;

interface SearchKeywordsService
{

    /**
     * 筛选商品
     * @param string $keyword 关键词
     * @param string $cat_id 分类ID
     * @param string $brand_id 品牌ID
     * @param int $stock  仅有货
     * @param int $pageSize 每页数量
     * @param int $orderType 排序类型:null|sale_desc|sale_asc|price_desc|price_asc
     * @return paginate
     */
    public function getFitterGoodsPaginate($keyword='',$cat_id='',$brand_id='',$stock=0,$pageSize=15,$orderType='');


    /**
     * 获取相似关键词
     * @param $keyword
     * @param $num
     * @return mixed
     */
    public function getRelateKeywords($keyword,$num);


    /**获取热搜关键词
     * @return mixed
     */
    public function getHotKeywords($num=10);

}